<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />
        <link rel="stylesheet" href="/css/font.css">
        <link rel="stylesheet" href="/css/xadmin.css">
        <script src="/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="x-nav">
              <span class="layui-breadcrumb">
                <a href="">
                        {php}echo config('lang.common.home_tab'){/php}
                    </a>
                    <a href="">
                        {php}echo config('lang.wechat.tab'){/php}
                    </a>
                    <a>
                        <cite>
                            {php}echo config('lang.wechat.info_tab'){/php}
                        </cite>
                    </a>
              </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            {php}echo config('lang.welcome.data_statistics'){/php}
                        </div>
                        <div class="layui-card-body ">
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>
                                            {php}echo config('lang.wechat.fans_count'){/php}
                                        </h3>
                                        <p>
                                            {php}$wechatUsersCount = \app\controller\WechatUsers::getCount(new \app\model\WechatUsers());{/php}
                                            <cite>
                                                {$wechatUsersCount}
                                            </cite>
                                        </p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            {php}echo config('lang.wechat.config_msg'){/php}
                        </div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>
                                            {php}echo config('lang.wechat.config_app_id'){/php}
                                        </th>
                                        <td>
                                            {php}echo config('wechat.app_id'){/php}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            {php}echo config('lang.wechat.config_secret'){/php}
                                        </th>
                                        <td>
                                            {php}echo config('wechat.secret'){/php}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            {php}echo config('lang.wechat.config_token'){/php}
                                        </th>
                                        <td>
                                            {php}echo config('wechat.token'){/php}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
            </div>
        </div>
    </body>
</html>